import React, { Component, PropTypes } from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux' 
import Container from '../components/striking/Container'
import * as CptsActions from '../actions/components'

class Striking extends Component {
  render() {
     const { components, actions } = this.props
    return (
      <div>
       <Container components={components} actions={actions} />
      </div>
    )
  }
}

Striking.propTypes = {
  components: PropTypes.array.isRequired,
  actions: PropTypes.object.isRequired
 
}

function mapStateToProps(state) {
  return {
    components:state.components
  }
}

function mapDispatchToProps(dispatch) {
  return {
    actions: bindActionCreators(CptsActions, dispatch)
  }
}

export default connect(
  mapStateToProps,
  mapDispatchToProps
)(Striking)
